<section id="trainer-profile">
    <div class="row">
        <div class="container">
            <div class="col-lg-12 column12">
                <div id="bread">
                    <ol class="breadcrumb">
                        <li><a href="<?php echo SITE_URL; ?>">Home</a></li>                      
                        <li class="active">Reviews</li>
                    </ol>
                </div><!-- breadcrumb div ends here --> 
            </div>  

            <div style="min-height: 250px;">
                <?php
                if (!empty($reviewdata)) {
                    foreach ($reviewdata as $reviews) {
                        $classCoursename = (!empty($reviews->classes_id)) ? $reviews->classes->class_titile : $reviews->courses->course_titile;
                        $reviewType = (!empty($reviews->classes_id)) ? SkillConfig::CLASS_WORK_SHOP : SkillConfig::Course_WORK_SHOP;
                        $userDetail = Users::getFrontEndUser($reviews->users_id);
                        $imgsrc = ($userDetail->photo <> "") ? getRequestbaseUrl() . getuploadFolderDir() . $userDetail->user_id . '/profile/minithumb/' . $userDetail->photo : getWorkNoshopimage(SkillConfig::skill_myinbox_image);
                        ?>

                        <div class="row" style="color: black;">
                            <div class="col-lg-12 col-sm-12 column12 col-md-12">
                                <div class="row"> <div  class="col-lg-2 col-sm-2 column2 col-md-2"> <img src="<?php echo $imgsrc; ?>" alt="..."> </div>
                                    <div  class="col-lg-10 col-sm-10 column10 col-md-10"> <?php echo (!empty($userDetail->first_name)) ? $userDetail->first_name . ' ' . $userDetail->last_name : SkillConfig::SKILL_NO_USERNAME; ?>
                                        <div class="caption" style="color: black;">
                                            <h5><?php echo $reviewType; ?>   :   <?php echo $classCoursename; ?></h5>

                                            <p><?php echo $reviews->reviews_text; ?></p>
                                        </div>
                                        <?php echo $reviews->create_time; ?>
                                    </div>


                                </div>
                            </div>
                        </div>
                        <div class="gap"> </div> <div class="gap"> </div>
                    <?php }
                    ?>

                <?php }
                ?>

                <div class="col-lg-12 col-sm-12 column12 col-md-12">
                    <div class="row"> <div  class="col-lg-2 col-sm-2 column2 col-md-2"> </div>
                        <div  class="col-lg-10 col-sm-10 column10 col-md-10"> 
                            <div class="errorMessage"><?php echo $reviewMessage; ?></div>
                        </div>


                    </div>
                </div>


                <div class="gap"></div> <div class="gap"></div>



            </div> <!-- trainer-profile container ends here --> 
        </div>       
</section>